<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        let num = +prompt('请输入分数');

        if (num >= 90) {
            alert('你的成绩为' + 'A');
        }else if (num >= 80) {
            alert('你的成绩为' + 'B');
        }else if (num >= 70) {
            alert('你的成绩为' + 'C');
        }else if (num >= 60) {
            alert('你的成绩为' + 'D');
        }else{
            alert('你的成绩为' + 'E');
        }
    </script>
</body>
</html>